package com.cskaoyan.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @USER: cuiweiguo#
 * @DATE: 2022/5/6
 * @TIME: 20:21
 * @PROJECT_NAME: mallproject2
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class StorageListBean {
    private Integer total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<Storage> list;

    public static StorageListBean data(long total, Integer pages, Integer limit, Integer page, List list) {
        StorageListBean storageListBean = new StorageListBean();
        storageListBean.setTotal((int) total);
        storageListBean.setPages(pages);
        storageListBean.setPage(page);
        storageListBean.setLimit(limit);
        storageListBean.setList(list);
        return storageListBean;
    }
}
